#include <netinet/in.h>
#include "type.h"
#include "ipmi_message.h"
//#include "ipmi.h"

#define MESSAGE_QUEUE_SIZE 10
typedef struct{
    uint8 used;
    payload_info_t payload_info;
    channel_info_t channel_info;
} message_queue_t;

typedef struct{
    uint8 chain_name[8];
    int16 (*parse)(uint8 *request, uint8 *response);
    int16 (*action)(uint8 *request, uint8 *response);
} ipmi_chain_t;

int16 set_message_queue(payload_info_t* payload_info, channel_info_t* channel_info);
